home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 12528 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.4 KB

  1. Path: news.uh.edu!usenet
  2. From: Sensarn <txs53132@bayou.uh.edu>
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: calloc() - is there a C++ equivalent ?
  5. Date: Tue, 19 Mar 1996 22:01:44 -0800
  6. Organization: AEtna Insurance Agency
  7. Message-ID: <314F9F48.1EAA@bayou.uh.edu>
  8. References: <4inkp1$je5@ncar.ucar.edu>
  9. NNTP-Posting-Host: sip-14280.public-dialups.uh.edu
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.01 (Win16; I)
  14.  
  15. James Adams wrote:
  16. > Hello,
  17. >         The subject line says it all - I want to allocate a block of
  18. > memory which I can count on being initialized to zero, as the calloc()
  19. > call in C will return.  Is there such a beast in C++, or will I have to
  20. > do the initialization programmatically ?
  21.  
  22. Calloc should be in C++ too (it's in TC++).  I think NEW would be 
  23. better, though...
  24. >         Thanks for any suggestions/insight !
  25. > -James
  26. > P.S. Please email information if possible.
  27. > --
  28. > ---------------------------------------------------------------------------
  29. > James Adams                               Email: jadams@ucar.edu
  30. > National Center for Atmospheric Research  Phone: (303) 497-1356
  31. > Boulder, Colorado                         Fax:   (303) 497-1348
  32. >         WWW:  http://www.cgd.ucar.edu/ccr/jadams/home.html
  33.  
  34. -- 
  35. ______________________________
  36.  
  37. Steven Sensarn
  38. E-Mail - txs53132@bayou.uh.edu
  39. ______________________________
  40.